package com.ranjiaqi.thread06;

/**
 * @ClassName Test
 * @Description TODO
 * @Author hp
 * @Date 2021/6/28 18:48
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {
        new Thread(){
            public void run(){
                for (int i = 0; i < 50 ; i++) {
                    System.out.println(Thread.currentThread().getName()+"::i = " + i);
                }
            }
        }.start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 50 ; i++) {
                    System.out.println(Thread.currentThread().getName()+"::i = " + i);
                }
            }
        }).start();


    }
}
